package com.xjscrm.console.chat.mq.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.slf4j.MDC;

/**
 * @author mingyang.chen create in 2024/4/11 上午11:52
 */
@Data
@NoArgsConstructor
public class StaffOfflineDTO {

    private Long merId;
    private Long staffId;
    private String channelId;
    private String channelNodeTag;

    private String traceId = MDC.get("traceId");

    public StaffOfflineDTO(Long staffId, String channelId, String channelNodeTag) {
        this.staffId = staffId;
        this.channelId = channelId;
        this.channelNodeTag = channelNodeTag;
    }
}
